package com.ycode.bang.anbang.utils;

import com.android.volley.AuthFailureError;
import com.android.volley.Response.ErrorListener;
import com.android.volley.Response.Listener;
import com.android.volley.toolbox.StringRequest;

import java.util.Map;

public class MyStringRequest extends StringRequest{
	private Map<String, String> param;

	public MyStringRequest(int method, String url, Listener<String> listener,
			ErrorListener errorListener,Map<String, String> param) {
		super(method, url, listener, errorListener);
		// TODO Auto-generated constructor stubx
		this.param = param;
	}
	@Override
	protected Map<String, String> getParams() throws AuthFailureError {
		// TODO Auto-generated method stub
		return param;
	}

}
